from django.contrib import admin
from coursemanagement1.myapp.models import *

class CourseAdmin(admin.ModelAdmin):
	list_display = ('Subject_ID','Subject_Name','Section_ID')

class SectionAdmin(admin.ModelAdmin):
	list_display = ('Section_ID','List_TA','List_Teacher','Amount_Student')

class StudentAdmin(admin.ModelAdmin):
	list_display = ('Student_ID','Student_Name','Student_Lastname','Section_ID','Lab_ID','Midterm_ID','Final_ID','Total_Score','grade')

class LabAdmin(admin.ModelAdmin):
	list_display = ('Lab_ID','Score_Lab1','Score_Lab2','Score_Lab3','Score_Lab4')

class MidtermAdmin(admin.ModelAdmin):
	list_display = ('Midterm_ID','Score_Midterm1','Score_Midterm2','Score_Midterm3','Score_Midterm4')

class FinalAdmin(admin.ModelAdmin):
	list_display = ('Final_ID','Score_Final1','Score_Final2','Score_Final3','Score_Final4')

class CountGradeAdmin(admin.ModelAdmin):
	list_display = ('Section','count_A','count_Bplus','count_B','count_Cplus','count_C','count_Dplus','count_D','count_F')

class UserAdmin(admin.ModelAdmin):
	list_display = ('username','password','role')

class HistogramXAdmin(admin.ModelAdmin):
        list_display = ('numberX','positionX','feq','Grade')

class HistogramYAdmin(admin.ModelAdmin):
        list_display = ('numberY','positionY')


admin.site.register(Course,CourseAdmin)
admin.site.register(Section,SectionAdmin)
admin.site.register(Student,StudentAdmin)
admin.site.register(Lab,LabAdmin)
admin.site.register(Midterm,MidtermAdmin)
admin.site.register(Final,FinalAdmin)
admin.site.register(CountGrade,CountGradeAdmin)
admin.site.register(User,UserAdmin)
admin.site.register(HistogramX,HistogramXAdmin)
admin.site.register(HistogramY,HistogramYAdmin)
